package work.mediway.mdm.biz.mapper.hierarchy;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import work.mediway.mdm.biz.entity.hierarchy.HosBusinessUnit;

@Mapper
public interface HosBusinessUnitMapper extends BaseMapper<HosBusinessUnit> {
    List<HosBusinessUnit> find(@Param("page") Page<HosBusinessUnit> page, @Param("hosBusinessUnit") HosBusinessUnit hosBusinessUnit);

    HosBusinessUnit findById(@Param("buCode") String buCode);

    int update(HosBusinessUnit hosBusinessUnit);

    /**
     * 查询业务单元类型
     *
     * @return List<HosBusinessUnit>
     */
    List<HosBusinessUnit> listHosBusinessUnitType();

}
